module.exports = `

  type Answer {
    id: ID!
    data: JSON
    finishAt: String
    costSeconds: Int
    rating: Int
    likeCount: Int
    state: ProgressState
    expireAt: String
    createdAt: String
    updatedAt: String
    userId: Int
    user: User
    comments: [Comment]
    userInfo: User
    liked: Boolean
    unreadCount: Int
  }

  input AnswerPayload {
    data: JSON
    costSeconds: Int
    progressId: ID
    documentId: ID
  }

  extend type Mutation {
    # Create an answer
    createAnswer(input: AnswerPayload!): Answer
    # Remove an answer
    # removeAnswer(id: ID!): Answer
  }

`
